package cn.dubito.miaosha.redis;

/**
 * @author liliang
 * @description:
 * @date 2018/3/31.
 */
public class SeckillUserKey extends BasePrefix {

    private static final int TOKEN_EXPIRE = 3600 * 24 * 2;
    private static final int ID_EXPIRE = 0;
    private static final String TOKEN_PREFIX = "token_";
    private static final String ID_PREFIX = "id_";

    public SeckillUserKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static SeckillUserKey token = new SeckillUserKey(TOKEN_EXPIRE, TOKEN_PREFIX);
    public static SeckillUserKey getById = new SeckillUserKey(ID_EXPIRE,ID_PREFIX);
}
